<template>
  <div class="header">
    <div class="header-left">
      <div class="iconfont back-font">&#xe624;</div>
    </div>
    <div class="header-input">
      <span class="iconfont">&#xe632;</span>
      输入城市/景点/游玩主题
    </div>
    <router-link to='/city' name="City">
      <div class="header-right">
        {{ this.city }}
      <span class="iconfont arrow-icon">&#xe71c;</span>
    </div>
    </router-link>
  </div>
</template>

<script>
export default {
  name: "HomeHeader",
  props: {
    city: String
  }
};
</script>

<style scoped>
* {
  margin: 0;
  padding: 0;
}
.header {
  display: flex;
  height: 43px;
  line-height: 43px;
  background: #00bcd4;
  color: #fff;
}

.header-left {
  width: 32px;
  float: left;
}
.back-font {
    text-align: center;
    font-size: 20px;
}
.header-input {
  flex: 1;
  height: 33px;
  line-height: 33px;
  background: #fff;
  margin: 5px 10px;
  border-radius: 0.1rem;
  color: #ccc;
  padding-left: 10px;
}
.header-right {
  width: 62px;
  float: right;
  text-align: center;
  color: #fff;
}
.arrow-icon {
    font-size: 12px;
}
</style>